import http from '/@/utils/request'
const base = "system/role/";

export function getRoleList(data) {
	return http.request({
		method: 'get',
		url: base+'list',
		data
	})
}


export function addRole(data) {
	return http.request({
		method: 'put',
		url: base+'add',
		data
	})
}


export function updateRole(data) {
	return http.request({
		method: 'put',
		url: base+'update',
		data
	})
}


export function deleteRole(data) {
	return http.request({
		method: 'delete',
		url: base+'delete',
		data
	})
}

export function getSelectRoleList(data) {
	return http.request({
		method: 'get',
		url: base+'select/list',
		data
	})
}